home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyc (Python 2.4)
-
- '''Provide backward compatibility with storages that only have undoLog().'''
-
- class UndoLogCompatible:
-
- def undoInfo(self, first = 0, last = -20, specification = None):
- if specification:
-
- def filter(desc, spec = specification.items()):
- get = desc.get
- for k, v in spec:
- if get(k, None) != v:
- return 0
- continue
-
- return 1
-
- else:
- filter = None
- return self.undoLog(first, last, filter)
-
-
-